﻿using System;

namespace AnimalEventTask
{
    public delegate void NameChangedEventHandler(object sender, NameChangedEventArgs args);

    public class NameChangedEventArgs:EventArgs
    {
        private string oldValue;
        private string newValue;

        public NameChangedEventArgs(string oldValue, string newValue)
        {
            this.oldValue = oldValue;
            this.newValue = newValue;
        }

        public string OldValue
        {
            get
            {
                return oldValue;
            }
        }

        public string NewValue
        {
            get
            {
                return newValue;
            }
        }
    }
}
